package loja.util.xml;

import java.io.File;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

public class XMLHelper {

	public static Element parse(File file) throws DocumentException {

		SAXReader reader = new SAXReader();
		Document document = reader.read(file);
		Element element = document.getRootElement();

		return element;

	}

}
